package cn.enilu.flash.bean.entity.park;

import cn.enilu.flash.bean.entity.BaseEntity;
import lombok.Data;
import org.hibernate.annotations.Table;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.validation.constraints.NotNull;

/**
 * @Description
 * @Author Spark
 * @Date Created in (2019/11/07 8:58)
 * @Version v1.0
 * @Modify
 **/
@Entity(name="parking_quote_ref")
@Table(appliesTo = "parking_quote_ref",comment = "车位报价关联")
@Data
@EntityListeners(AuditingEntityListener.class)
public class ParkingQuoteRef extends BaseEntity {

    @Column(name = "parking_id", columnDefinition = "BIGINT COMMENT '车位ID'")
    @NotNull(message = "车位")
    private Long parkingId;

    @Column(name = "quote_id", columnDefinition = "BIGINT COMMENT '报价ID'")
    @NotNull(message = "报价")
    private Long quoteId;
}
